
import request from '../../utils/request';
//data：post请求中携带的数据（obj格式），params：get请求中携带的数据（就是在浏览器地址xx/xx/xx后面?XX=oo&XX=oo这部分数据，obj格式）
//管理员登陆
export default{
/*-------------------------------------------------------------角色相关-------------*/ 
    
    
    /*-------------菜单相关-------------*/ 
    //菜单列表
    menuTreeList: query => {
        return request({
            url: '/pet-admin/system/menu/list',
            method: 'post',
            data: query
        });
    },
    // 菜单树
    menuTreeselect: query => {
        return request({
            url: '/pet-admin/system/menu/treeList',
            method: 'post',
            data: query
        });
    },
    menuDetail: query => {
        return request({
            url: '/pet-admin/system/menu/detail',
            method: 'post',
            data: query
        });
    },
    addMenu: query => {
        return request({
            url: '/pet-admin/system/menu/add',
            method: 'post',
            data: query
        });
    },
    updateMenu: query => {
        return request({
            url: '/pet-admin/system/menu/edit',
            method: 'post',
            data: query
        });
    },
    delMenu: query => {
        return request({
            url: '/pet-admin/system/menu/delete',
            method: 'post',
            data: query
        });
    },
    
}
